package com.lw.question09;

/**
 * @author LW
 * @2020/9/16 20:08
 */
public class 落地累计1 {
    public static void main(String[] args) {
        double height = 100;
        double total = 0;
        for (int i = 1; i <= 10; i++) {
            total += height;//从第一次没落下的高度开始累积
            height = height/2;
        }
        System.out.println(total);
    }
}
